<template>
    <el-table :data="info" border style="width: 100%">
        <el-table-column prop="transferDate" label="日期" align="center" >
           <template v-slot="scope">
            {{scope.row.transferDate.substr(0,10)}}
           </template>
        </el-table-column>
        <el-table-column prop="transferType" label="繁殖状态" align="center" >
           <template v-slot="scope">
            <span v-if="scope.row.transferType==1">种母配种转舍</span>
            <span v-if="scope.row.transferType==2">种母妊检转舍</span>
            <span v-if="scope.row.transferType==3">种母分娩转舍</span>
            <span v-if="scope.row.transferType==4">种母产羔转舍</span>
            <span v-if="scope.row.transferType==5">种母断奶转舍</span>
            <span v-if="scope.row.transferType==6">后背转种转舍</span>
            <span v-if="scope.row.transferType==7">羊只期初转舍</span>
            <span v-if="scope.row.transferType==8">羊只采购转舍</span>
            <span v-if="scope.row.transferType==9">公羊调教转舍</span>
            <span v-if="scope.row.transferType==10">羔羊断奶转舍</span>
            <span v-if="scope.row.transferType==11">产羔等级转舍</span>
            <span v-if="scope.row.transferType==12">后裔转种转舍</span>
            <span v-if="scope.row.transferType==13">羊只转舍</span>
            <span v-if="scope.row.transferType==14">羊只戴标转舍</span>    
           </template>
        </el-table-column>
        <el-table-column prop="" label="内容" align="center" >
            转出栋舍"采购羊栋舍"栏位,
        </el-table-column>
      </el-table>
    </template>
    <script setup lang="ts">
    import axios from "axios";
    import {ref,reactive,onMounted} from "vue"
    import Cookies from 'cookies-ts'
    const cookie = new Cookies();
    
    const info=ref()
    const infolist=()=>{
        axios.get("http://10.31.60.16:8082/api/ShiftSelects/GetEarShiftInfo?EarNumber="+cookie.get("earNumber")).then(res=>{
            info.value=res.data;
            console.log(res.data)
        })
    }
    onMounted(()=>{
        infolist()
    })
    </script>
    <style></style>